$(document).ready(function(){

  $("#DeleteComfirm").click(function(){
	  var deletecode=$("#DeleteCode").val();
	  if(deletecode==''){
		  alert("请输入编码！");
	  }else{
		  $.ajax({  
		       url : "/DeleteComfirm",  
		       type : "POST",       
		       dataType:'json',
		       data : {"deletecode":deletecode,    	     
		       },  
		       success : function() {  
		    	   alert("ok");
		       },  
		       error : function() {  
		            
		       }  
	  });  
	  }
	  
});
});